<?php

namespace Modules\Chinadmin\Models;

/**
 *
 */
class AdvertisementTypeModel extends BaseModel
{

    public $table = 'ca_advertisement_type';
    public $primaryKey = 'id';

    static public function get_kv(){
        $re = self::get()->toArray();
        $data = array_column($re,"name","id");
        return json_encode($data);
    }

}
